import { HttpClient } from "../../../../service/Http/HttpClient";
// import fly from "../../../../service/Http/fly";

//获取项目所有建筑
export const getfindFilesBuildList = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/files/build/findFilesBuildList", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
export const findFirstBuildList = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/files/build/findFirstBuildList", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
///ems/building/analysis
/**用能统计 开始 */
//用量汇总
export const getEnergySummaryData = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/building/getEnergySummaryData", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//用量汇总月
export const getEnergyMonthData = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/building/getEnergyMonthData", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//建筑用能统计
export const statistical = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/building/statistical", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
//建筑用能统计导出
export const statisticalExportExcel = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/building/statisticalExportExcel", {
    method: "POST",
    headers: { qingqiuType: "file" },
    body: pream,
  });
};
/**用能统计 结束 */
/**用能费用统计 开始*/
export const cost = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/building/cost", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
export const costExportExcel = (pream: any) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/building/costExportExcel", {
    method: "POST",
    headers: { qingqiuType: "file" },
    body: pream,
  });
};
/**用能费用统计 结束*/
/**同比分析 开始*/
//建筑用能同比
export const analysis = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/building/analysis", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
/**同比分析 结束*/
/**用能分析报告 开始 */
//建筑用能统计
export const energyReport = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/building/energyReport", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
/**能源库存管理 结束*/
//设备用量详情
export const getDeviceListData = (pream: string) => {
  const http = HttpClient.instance();
  return http.fetch("/api/ems/datamgr/usedenergyqry/getDeviceListData", {
    method: "POST",
    headers: {},
    body: pream,
  });
};
/**用能分析报告 结束 */


